import request from "../index";

export default class UserRequest {
  public static getUser(params: any) {
    return request({
      url: "/user",
      params: params,
      method: "get",
    });
  }
  public static addUser(data: any) {
    return request({
      url: "/user",
      data,
      method: "post",
    });
  }
  public static editUser(data: any) {
    return request({
      url: "/user",
      data,
      method: "put",
    });
  }
  public static deleteUser(params: any) {
    return request({
      url: "/user",
      params,
      method: "delete",
    });
  }
  public static getUserList(params: any) {
    return request({
      url: "/user/list",
      params,
      method: "get",
    });
  }
}
